<div class="yvo-buttons">      
    <?php if (Security::hasRight(Security::RIGHT_SETTINGS)): ?>	
        <a href="<?php echo url_for('@settings_index') ?>">
            <div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton yvo-menubutton" role="button" aria-disabled="false">
                <span class="ui-button-text yvo-smalltext">
                    <?php echo __('Settings') ?>
                </span>
            </div>
        </a>
    <?php endif ?>

    <?php if (Security::hasRight(Security::RIGHT_CALL_CENTER)): ?>
        <a href="<?php echo url_for('@reservation_backoffice') ?>">
            <div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton yvo-menubutton " role="button" aria-disabled="false">
                <span class="ui-button-text yvo-smalltext">
                    <?php echo __('New reservation') ?>
                </span>
            </div>
        </a>	

    <?php endif ?>

    <a href="<?php echo url_for('@reservation_list?date=' . date('Y-m-d')) ?>">	
        <div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton yvo-menubutton " role="button" aria-disabled="false">
            <span class="ui-button-text yvo-smalltext">
                <?php echo __('Reservation list') ?>
            </span>
        </div>
    </a>	
    <a href="<?php echo url_for('@login_logout') ?>">	
        <div type="button" class="ui-button ui-widget ui-state-active ui-corner-all ui-button-text-only yvo-smallbutton yvo-menubutton " role="button" aria-disabled="false">
            <span class="ui-button-text yvo-smalltext">
                <?php echo __('Logout') ?>
            </span>
        </div>
    </a>
</div>
<?php
Util::loadHelper('Partial');
Util::loadHelper('I18N');
$user = sfContext::getInstance()->getUser();
echo '<span style="position: fixed; top: 0px; right: 0px;";>Ingelogd als "' . $user->getAttribute('user_namefirst') . ' ' . $user->getAttribute('user_namelast') .  '" (' . $user->getAttribute('user_type') . ').</span>';
?>